package com.hopscotch.controller;

import com.hopscotch.entity.StudentClassroomVO;
import com.hopscotch.service.CrudService;
import com.hopscotch.uilt.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CrudController {

    @Autowired
    private CrudService curdService;

    @GetMapping("/select")
    public R selectSudent(int id){
        StudentClassroomVO studentClassroomVO = curdService.selectStudent(id);
        return R.success(studentClassroomVO);
    }
}
